package com.wenx.stack;

/**
 * Created by wenx on 2019-10-11 15:11
 */
public class MyStackTest {
    public static void main(String[] args) {
        MyStack myStack = new MyStack();
        boolean empty = myStack.isEmpty();
        System.out.println("empty = " + empty);
        myStack.push("a");
        myStack.push("b");
        myStack.push("c");
        myStack.push("d");
        myStack.push("e");
        myStack.push("f");
        myStack.push("g");
        myStack.push("h");
        myStack.push("i");
        myStack.push("j");
        int size = myStack.size();
        System.out.println("size = " + size);
        Object pop = myStack.pop();
        System.out.println("pop = " + pop);
        Object peek = myStack.peek();
        System.out.println("peek = " + peek);
        int size1 = myStack.size();
        System.out.println("size1 = " + size1);

    }
}